#ifndef _RINGBUFFER_H_
#define _RINGBUFFER_H_

#define RB_FIFO_MAX_SIZE 128

typedef struct
{
    unsigned char RB_Index;
    unsigned char RB_Outdex;
    unsigned char RB_Data[RB_FIFO_MAX_SIZE];
} RingBuffer_Typedef;

void RB_WriteByte(RingBuffer_Typedef *Rbuf, unsigned char data);
unsigned char RB_ReadBytes(RingBuffer_Typedef *Rbuf, unsigned char *data, unsigned char Datalen);

#endif
